package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CSoftwarecopyrightDao;
import gov.ccswj.modules.ccbusiness.entity.CSoftwarecopyrightEntity;
import gov.ccswj.modules.ccbusiness.service.CSoftwarecopyrightService;



@Service("cSoftwarecopyrightService")
public class CSoftwarecopyrightServiceImpl implements CSoftwarecopyrightService {
	@Autowired
	private CSoftwarecopyrightDao cSoftwarecopyrightDao;
	
	@Override
	public CSoftwarecopyrightEntity queryObject(Integer id){
		return cSoftwarecopyrightDao.queryObject(id);
	}
	
	@Override
	public List<CSoftwarecopyrightEntity> queryList(Map<String, Object> map){
		return cSoftwarecopyrightDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cSoftwarecopyrightDao.queryTotal(map);
	}
	
	@Override
	public void save(CSoftwarecopyrightEntity cSoftwarecopyright){
		cSoftwarecopyrightDao.save(cSoftwarecopyright);
	}
	
	@Override
	public void update(CSoftwarecopyrightEntity cSoftwarecopyright){
		cSoftwarecopyrightDao.update(cSoftwarecopyright);
	}
	
	@Override
	public void delete(Integer id){
		cSoftwarecopyrightDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cSoftwarecopyrightDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cSoftwarecopyrightDao.delete(entname);
		
	}
}
